package com.eaoa.uc.address.form;

import com.eaoa.base.EABaseForm;
import com.eaoa.vo.pub.PubAddress;
import com.stony.core.util.CoreUtils;

public class HRAddressModifyForm extends EABaseForm {
	private String addressno;
	private String adcode;
	private String adtype;
	private String adname;
	private String addetail;
	private String country;
	private String province;
	private String city;
	private String district;
	private String postcode;
	private String linkman;
	private String mobile;
	private String tel;
	private String faxes;
	private String email;
	private String remark;

	

	public PubAddress getVO() {
		PubAddress vo=new PubAddress();
		vo.setAdcode(this.adcode);
		vo.setAddressno(CoreUtils.parseLong(this.addressno));
		vo.setAdname(this.adname);
		vo.setAddetail(this.addetail);
		vo.setAdtype(this.adtype);
		vo.setCity(this.city);
		vo.setCountry(this.country);
		vo.setDistrict(this.district);
		vo.setEmail(this.email);
		vo.setFaxes(this.faxes);
		vo.setLinkman(this.linkman);
		vo.setMobile(this.mobile);
		vo.setPostcode(this.postcode);
		vo.setProvince(this.province);
		vo.setRemark(this.remark);
		vo.setTel(this.tel);
		return vo;
	}
	
	public void setVO(PubAddress vo){
		this.adcode=vo.getAdcode();
		this.addressno=CoreUtils.formatString(vo.getAddressno());
		this.adname=vo.getAdname();
		this.addetail=vo.getAddetail();
		this.adtype=vo.getAdtype();
		this.city=vo.getCity();
		this.district=vo.getDistrict();
		this.country=vo.getCountry();
		this.email=vo.getEmail();
		this.faxes=vo.getFaxes();
		this.linkman=vo.getLinkman();
		this.mobile=vo.getMobile();
		this.postcode=vo.getPostcode();
		this.province=vo.getProvince();
		this.remark=vo.getRemark();
		this.tel=vo.getTel();
	}
	
	public String getAddressno() {
		return addressno;
	}

	public void setAddressno(String addressno) {
		this.addressno = addressno;
	}

	public String getAdcode() {
		return adcode;
	}

	public void setAdcode(String adcode) {
		this.adcode = adcode;
	}

	public String getAdtype() {
		return adtype;
	}

	public void setAdtype(String adtype) {
		this.adtype = adtype;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getFaxes() {
		return faxes;
	}

	public void setFaxes(String faxes) {
		this.faxes = faxes;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAdname() {
		return adname;
	}

	public void setAdname(String adname) {
		this.adname = adname;
	}

	public String getAddetail() {
		return addetail;
	}

	public void setAddetail(String addetail) {
		this.addetail = addetail;
	}

}
